package com.ruoyi.server.domain.dto;

import com.ruoyi.common.base.BaseDTO;
import com.ruoyi.common.core.domain.model.LoginUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 服务器对象 server_info
 *
 * @author ghostmen
 * @date 2024-10-31
 */
@Data
@ApiModel(description = "服务器编辑对象")
public class ServerInfoUpdateDTO extends BaseDTO {
    private static final long serialVersionUID = 1L;

    /**
     * 服务器id
     */
    @NotNull(message = "服务器id不能为空")
    @ApiModelProperty(value = "服务器id", required = true)
    private Long serverId;

    /**
     * 服务器
     */
    @NotBlank(message = "服务器不能为空")
    @ApiModelProperty(value = "服务器", required = true)
    private String server;

    /**
     * 登录用户
     */
    @ApiModelProperty(value = "登录用户", hidden = true)
    private LoginUser loginUser;

}
